<template>
  <div id="app">
    <!-- 加载公共的页头组件标签 -->
    <!-- <router-view /> -->
    <keep-alive>
      <router-view v-if="$route.meta.keepAlive" />
    </keep-alive>
    <router-view v-if="!$route.meta.keepAlive" />
    <!-- 底部导航栏 -->
    <Tabbar></Tabbar>
  </div>
</template>
<script>
import Tabbar from "./components/common/Tabbar";

export default {
  data() {
    return {};
  },
  components: {
    Tabbar
  }
};
</script>

<style>
#app {
  width: 100%;
  height: 100vh;
  background: #f2f2f2;
}
</style>
